package erp.education.server.beans.implementation.exceptions;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;

import erp.education.server.beans.implementation.ResultResponse;

public class ERPException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String message;
	
public ERPException(){
	super();
}
public ERPException(String message,Throwable cause){
	super(message,cause);
}
public ERPException(String message,MessageCode errorCode){

  super(message);
 this.message=errorCode.getErrorMessage();

 
}
@Override
public String toString(){
	return this.message;
}
@Override
public String getMessage() {
    return message;
}

 
}
